home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gnome-applets.postinst < prev    next >
Encoding:
Text File  |  2007-03-12  |  771 b   |  44 lines

  1. #!/bin/sh
  2. # postinst script for gnome-cpufreq-selector
  3.  
  4. set -e
  5.  
  6. . /usr/share/debconf/confmodule
  7. db_version 2.0
  8.  
  9. prog=/usr/bin/cpufreq-selector
  10.  
  11. case "$1" in
  12.     configure)
  13.     if test -e $prog; then
  14.         db_get gnome-applets/cpufreq_SUID_bit
  15.         if [ "$RET" = "false" ]; then
  16.         chmod 0755 $prog
  17.         fi;
  18.     fi
  19.     ;;
  20.  
  21.     abort-upgrade|abort-remove|abort-deconfigure)
  22.  
  23.     ;;
  24.  
  25.     *)
  26.         echo "postinst called with unknown argument \`$1'" >&2
  27.         exit 1
  28.     ;;
  29. esac
  30.  
  31. # Automatically added by dh_gconf
  32. if [ "$1" = "configure" ] && which update-gconf-defaults >/dev/null 2>&1; then
  33.     update-gconf-defaults
  34. fi
  35. # End automatically added section
  36. # Automatically added by dh_makeshlibs
  37. if [ "$1" = "configure" ]; then
  38.     ldconfig
  39. fi
  40. # End automatically added section
  41.  
  42.  
  43. exit 0
  44.